import asyncio


async def foo():
    await asyncio.sleep(1)
    return 'foo result'


async def bar():
    await asyncio.sleep(2)
    return 'bar result'


async def main():
    tasks = [foo(), bar()]
    results = await asyncio.gather(*tasks)
    print(type(results))
    print(results)  # Output: ['foo result', 'bar result']


asyncio.run(main())
